Release 10.1A: OpenEdge Data Management:
Database Administration
Copying a database using PROCOPY
Use the PROCOPY utility to copy an existing database. For example, to copy the
Sports2000database to a database namedmysports2000, enter the following:
PROCOPY supports storage areas. Therefore, if a target database exists, it must contain at a minimum the same type and number of storage areas and same extent types as the source database. However, the number of extents in the storage areas of the target database do not need to match the number of extents in the source database. PROCOPY attempts to extend the existing extents in the target database to accommodate the possible increase in size.
If a target database does not exist, PROCOPY creates one using an existing structure description (
.st) file in the target database directory. If a.stfile does not exist, PROCOPY creates the target database using the structure of the source database and places all of the extents in the same directory as the target database structure (.db) file, even when the source database resides in multiple directories.PROCOPY uses absolute pathnames
When you use the PROCOPY utility, the target database you create always has an absolute pathname regardless of the pathname convention used by the source database.
For example, if you use PROCOPY to create a database, name it
example1, and use a relative path database such assports2000as the source database,example1will have an absolute pathname even though the source database,sports2000, uses a relative pathname. Use PROSTRCT LIST to verify the absolute pathname of your target database. For example:
In the following sample output of the PROSTRCT LIST utility, note the absolute pathname of the database,
example1.db:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |